#ifndef __main_h
#define __main_h

 #define D_1s         250   //1s
	#define D_40ms       10    //40ms
	//#define D_300ms   16 //300ms
	#define D_500ms      125     //500ms
	 #define D_1m       60
	#define D_2s  2
	
	
		#define D_MoShi  1	
		#define D_YuYue  2
		#define D_DingShi 3	
		#define D_KaiGuan  4
		
		
		
		#define  D_SuRe           1
		#define  D_YangShengCha   2
		#define  D_TianPin        3
		#define  D_ZhuZhou        4
		#define  D_DunTang        5
		#define  D_MenZhu         6
		#define  D_BaoWen         7
		
#ifdef __main_c
uint8_t timer40ms;
uint8_t timer500ms;
uint8_t timer1s;
uint8_t clockAddTime;
uint8_t  timer1m;
uint8_t timer2s;
bit bUpdateCurTemp;
bit bSecFlash500ms;
bit bStart;
uint8_t function;
uint16_t workTime;
uint8_t zuiXiaoWorkTime;
uint16_t zuiDaWorkTime;
bit bPowerOnOff;
uint8_t flashFunction;
uint8_t flashYuYueTime;
bit bFunctionSure;
uint16_t yuYueTime; 
bit bSecFlash2s;
uint8_t step;
bit bFinish;
uint8_t keepTime;
bit bHigTemp;
uint8_t buzzNum;
bit bAllowAdOff;
#else
extern bit bAllowAdOff;
extern uint8_t buzzNum;
extern bit  bHigTemp;
extern uint8_t step;
extern bit bFinish;
extern uint8_t keepTime;
extern bit bSecFlash2s;
extern uint8_t timer2s;
extern uint16_t yuYueTime;
extern bit bStart;
extern uint8_t function;
extern uint16_t workTime;
extern uint8_t zuiXiaoWorkTime;
extern uint16_t zuiDaWorkTime;
extern bit bPowerOnOff;
extern uint8_t flashFunction;
extern uint8_t flashYuYueTime;
extern bit bFunctionSure;
extern bit bUpdateCurTemp;
extern bit bSecFlash500ms;
extern uint8_t timer40ms;
extern uint8_t timer500ms;
extern uint8_t timer1s;
extern uint8_t clockAddTime;
extern uint8_t  timer1m;
#endif
void  OrdFunction();
void OrdStep(uint8_t time1,uint8_t fireType1);
void KeyKaiGuan();
void KeyDingShi();
void KeyYuYue();
void KeyMoShi();
void LedDisplay();
void getKey();
	void timerControl() ;
void	  PowerOff();
#endif
